#include <stdio.h>
#include "vector.h"
#include <algorithm.h>
#define v_s vector_setsize
#define pb vector_push_back
#define del vector_delete
vector v;
int main(void){
    int n,x;
    freopen("test.in","r",stdin);
    freopen("test.out","w",stdout);
    scanf("%d",&n);
    v_s(&v,sizeof(int));
    while (n--){
          scanf("%d",&x);
          pb(&v,x);
    }
    prvec(v);
    printf("\n");
    del(&v,4);
    prvec(v);
    return 0;
}
